<%@ include file="/inc/SessionTimeout.inc"%>
<%@ page contentType = "text/html;charset=UTF-8" %>
<%--
 *  File:    ControlGLAccountEditFrm.jsp
 *  @Author: Stephen Liu
 *  Date:    2004/01/29
 *
 *  Copyright (C) 2000 - 2001 Oval Technologies, Inc.
 *  All rights reserved.
 *
 *  This software is the confidential and proprietary information of Oval
 *  Technologies, Inc. ("Confidential Information").  You shall not
 *  disclose such Confidential Information and shall use it only in
 *  accordance with the terms of the license agreement you entered into
 *  with Oval.
--%>

<%@ page language="java" %>
<%@ page import="java.util.*" %>
<%@ page import="org.apache.log4j.Category" %>
<%@ page import="com.oval.util.*" %>

<%
  String strModuleName = "GL";
  String privilegeCode = "40109";
%>

<%@ include file="/inc/Security.inc" %>
<%@ include file="/inc/FrmDefault.inc" %>

<html>
<head>
<title></title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<%
  HashMap userinfo = (HashMap) session.getAttribute("userinfo");
  if (userinfo == null)
    userinfo = new HashMap();

  Object entityid = null;
  String entitytype = "";
  if (request.getParameter("glaccountlistid") != null && request.getParameter("glaccountlistid").toString().length() > 0) {
    entityid = request.getParameter("glaccountlistid");
    entitytype = "1";
  }
  else if (request.getParameter("entityid")!=null) {
    entityid = request.getParameter("entityid");
    entitytype = "2";
  }
  else if (userinfo.get("booksetid") != null) {
    entityid = userinfo.get("booksetid");
    entitytype = "2";
  }

  String suffix = "New";
  if (request.getParameter("glaccountid") != null)
    suffix = "Edit";
%>
<frameset rows="85,*" frameborder="NO" border="0" framespacing="0" cols="*">
  <frame name="up" src="ControlGLAccountEditHeader.jsp?<%= OvalTools.randomURL() %>&booksettype=<%=JspHelper.filterNull( request.getParameter("booksettype") )%>&glaccountid=<%=JspHelper.filterNull( request.getParameter("glaccountid") )%>" scrolling="no" frameborder="NO" noresize >
  <frame name="down" src="ControlGLAccountMaster<%=JspHelper.filterNull( suffix )%>.jsp?<%= OvalTools.randomURL() %>&booksetid=<%=JspHelper.filterNull( request.getParameter("booksetid"))%>&booksettype=<%=JspHelper.filterNull( request.getParameter("booksettype") )%>&glaccountid=<%=JspHelper.filterNull( request.getParameter("glaccountid") )%>&glaccountlistid=<%=JspHelper.filterNull( request.getParameter("glaccountlistid") )%>&parentaccountid=<%=JspHelper.filterNull( request.getParameter("parentaccountid") )%>&grade=<%=JspHelper.filterNull( request.getParameter("grade") )%>&glaccountclasscode=<%=JspHelper.filterNull( request.getParameter("glaccountclasscode") )%>&entityid=<%=JspHelper.filterNull( entityid )%>&entitytype=<%=JspHelper.filterNull( entitytype )%>&currencycode=<%=JspHelper.filterNull( request.getParameter("currencycode") )%>" frameborder="NO" scrolling="no">
</frameset>
<noframes>
<body>
</body>
</noframes>
</html>
